import FishNetManager from "../../script/game/manager/FishNetManager";

const {ccclass, property} = cc._decorator;

@ccclass
export default class FishNetBase extends cc.Component {

    public netType:number = 0;
    
    private tween:cc.Tween;



    public playMv(){
        this.node.setScale(0)
        this.tween = cc.tween(this.node).to(0.2, { scale: 2 }).delay(0.3).call(() => {
            FishNetManager.instance.destroyFishNet(this);
        }).start()
    }

    onDestroy(){
        if(this.tween){
            this.tween.stop();
        }
    }
  
}
